## 切数字，取一半，与另一半作比较
## 10Min
snum=input()
wid=len(snum)

if wid%2!=0:
    print(f"Error: {wid} digit(s)")
else:
    left=int(snum[:wid//2])
    right=int(snum[wid//2:])
    if right-left==2:
        print(f"Yes: {right} - {left} = 2")
    else:
        print(f"No: {right} - {left} != 2")